chore: upgrade rmcp to v0.17.0 and reqwest to v0.13 - #140
Merged
Conversation
The has_active_tokens field and clients_with_tokens in-memory set tracked whether clients had been issued tokens to show Active/Inactive status badges in the UI. This status was unreliable (in-memory only, lost on restart) and not needed. Removes the status badges from the clients page, the tracking state from the gateway, and the field from both gateway and Tauri response structs. Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
- Update rmcp from v0.15.0 to v0.17.0 - Update reqwest from v0.12 to v0.13 (required by rmcp 0.17) - Add reqwest "form" feature (now optional in reqwest 0.13) - Rename reqwest "rustls-tls" feature to "rustls" (reqwest 0.13 rename) - Remove [patch.crates-io] for SSE channel fix (resolved upstream) - Add new StoredCredentials.token_received_at field (rmcp 0.17) - Add new StreamableHttpServerConfig.json_response field (rmcp 0.17) Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
Since build_token_response already recalculates expires_in as remaining time from stored expires_at, setting token_received_at=now at load time makes rmcp's expiry math correct (remaining = expires_in - 0), enabling client-side token refresh before expiry instead of waiting for a 401. Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
[patch.crates-io]git override for SSE channel replacement fix (resolved upstream in rmcp 0.17)StoredCredentials.token_received_at,StreamableHttpServerConfig.json_responseformfeature (now opt-in in reqwest 0.13) and renamerustls-tls→rustlsKey upstream changes (v0.16 + v0.17)
token_endpoint_auth_methodsupportjson_responseoption for stateless server modetoken_received_atTest plan
cargo clippy --workspace -- -D warnings— zero warningscargo test --workspace --lib— 32 unit tests passcargo test -p tests— 33 integration tests pass (including 16 streamable HTTP tests)pnpm test:ts— 182 TypeScript tests passpnpm test:e2e— 12/13 specs pass (1 flakygateway.wdio.ts— also fails on main)pnpm lint— 0 errors (pre-existing warnings only)